<%@page	import="java.util.ArrayList,com.alibaba.dubbo.demo.bean.SysUserinfo"%>
<%@page	import="com.point.community.bean.dwzPageData"%>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@page import="java.lang.Integer"%>
<%@page import="java.lang.String"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
     dwzPageData dwzData;
     if(request.getSession().getAttribute("backuplogDwzData")!=null)
     	dwzData =(dwzPageData)request.getSession().getAttribute("backuplogDwzData"); 
     else
     	dwzData = new dwzPageData();
%>
<script language="JavaScript">
function myrefresh()
{
   document.getElementById("btnquery").click();
}
//setTimeout('myrefresh()',5000); //指定5秒刷新一次
</script>
<div id="devstatusquerydiv" class="unitBox" >
<div class="pageHeader">
  	<form id="pagerForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="webQueryAllBackupLog" method="post">
         <input type="hidden" name="pageNum" value="<%=dwzData.currentPage%>" />
        <input type="hidden" name="numPerPage" value="<%=dwzData.numPerPage%>" />  
        <input type="hidden" name="method" value="page" />
        <div class="searchBar">
            <table class="searchContent">
				<tr>
					<td >
					开始日期：<input type="text" name="startdate" class="date" readonly="true" value="<s:property value="#session.startdate" />" style="width:80px" />
					</td>
					<td >
						结束日期：<input type="text" name="enddate" class="date" readonly="true" value="<s:property value="#session.enddate" />" style="width:80px"  />
					</td>
					<td>
							<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit" id="btnquery" name="btnquery">检索</button>
							</div>
						</div>
					</td>		
				</tr>
			</table>
			
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table"  layoutH="88"> 
		<thead>
			<tr>
				<th width="80px">序号</th>
				<th width="160px">备份时间</th>
				<th width="240px">备份文件</th>
				<th width="160px">文件大小</th>
			</tr>
		</thead>
		<tbody>
			<% 
				int nIndex = 1;
			%>
			<s:iterator value="#session.sysBackuplogList" status="m">
				<tr target="sid_user" rel="<s:property value="mainid" />">
					<td><%=nIndex %></td> 
					<% 
						nIndex ++;
					%>
					<td><s:property value="backuptime"/></td>
					<td><s:property value="filepath"/></td>
					<td><s:property value="filesize"/></td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
     <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="10" <s:if test="10 == #session.numPerPage">selected="selected"</s:if>>10</option>
                <option value="20" <s:if test="20 == #session.numPerPage">selected="selected"</s:if>>20</option>
                <option  value="50"  <s:if test="50 == #session.numPerPage">selected="selected"</s:if>>50</option>
                <option  value="100"  <s:if test="100 == #session.numPerPage">selected="selected"</s:if>>100</option>
            </select>
            <span>条，共<%=dwzData.totalCount%>条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount= "<%=dwzData.totalCount%>" numPerPage="<%=dwzData.numPerPage%>" pageNumShown="<%=dwzData.pageNumShown%>" currentPage="<%=dwzData.currentPage%>" ></div>
    </div>
  </div> 
</div>